package com.ruoyi.product.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 sys_product
 * 
 * @author ruoyi
 * @date 2025-04-28
 */
public class SysProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 供应商ID */
    private Long supplierId;

    /** 商品产地 */
    @Excel(name = "商品产地")
    private String productOrigin;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String productDescription;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal sellingPrice;

    /** 供应价格 */
    @Excel(name = "供应价格")
    private BigDecimal supplyPrice;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long quantity;

    /** 库存预警值 */
    @Excel(name = "库存预警值")
    private Long stockWarning;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productImage;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 包装（瓶、盒、袋） */
    @Excel(name = "包装", readConverterExp = "瓶=、盒、袋")
    private String packaging;

    /** 生产批号 */
    @Excel(name = "生产批号")
    private String batchNumber;

    /** 批准文号 */
    @Excel(name = "批准文号")
    private String approvalNumber;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /*关联*/
    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }

    public void setProductOrigin(String productOrigin) 
    {
        this.productOrigin = productOrigin;
    }

    public String getProductOrigin() 
    {
        return productOrigin;
    }

    public void setProductDescription(String productDescription) 
    {
        this.productDescription = productDescription;
    }

    public String getProductDescription() 
    {
        return productDescription;
    }

    public void setSellingPrice(BigDecimal sellingPrice) 
    {
        this.sellingPrice = sellingPrice;
    }

    public BigDecimal getSellingPrice() 
    {
        return sellingPrice;
    }

    public void setSupplyPrice(BigDecimal supplyPrice) 
    {
        this.supplyPrice = supplyPrice;
    }

    public BigDecimal getSupplyPrice() 
    {
        return supplyPrice;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setStockWarning(Long stockWarning) 
    {
        this.stockWarning = stockWarning;
    }

    public Long getStockWarning() 
    {
        return stockWarning;
    }

    public void setProductImage(String productImage) 
    {
        this.productImage = productImage;
    }

    public String getProductImage() 
    {
        return productImage;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setPackaging(String packaging) 
    {
        this.packaging = packaging;
    }

    public String getPackaging() 
    {
        return packaging;
    }

    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }

    public void setApprovalNumber(String approvalNumber) 
    {
        this.approvalNumber = approvalNumber;
    }

    public String getApprovalNumber() 
    {
        return approvalNumber;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return "SysProduct{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", supplierId=" + supplierId +
                ", productOrigin='" + productOrigin + '\'' +
                ", productDescription='" + productDescription + '\'' +
                ", sellingPrice=" + sellingPrice +
                ", supplyPrice=" + supplyPrice +
                ", quantity=" + quantity +
                ", stockWarning=" + stockWarning +
                ", productImage='" + productImage + '\'' +
                ", specification='" + specification + '\'' +
                ", packaging='" + packaging + '\'' +
                ", batchNumber='" + batchNumber + '\'' +
                ", approvalNumber='" + approvalNumber + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", supplierName='" + supplierName + '\'' +
                '}';
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

}
